package com.bs.bszhsq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 车位信息
 * </p>
 *
 * @author 章宇光
 * @since 2024-03-25
 */
@ApiModel(value = "Carport对象", description = "车位信息")
public class Carport implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
        @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("创建时间")
      private LocalDateTime addtime;

      @ApiModelProperty("车位编号")
      private String numberId;

      @ApiModelProperty("车位区域")
      private String area;

      @ApiModelProperty("车位类别")
      private String type;

      @ApiModelProperty("车位位置")
      private String place;
      //0  可预定  1 已预定  2 待定
      @ApiModelProperty("车位状态")
      private Integer status;

      @ApiModelProperty("车位价格")
      private Integer price;

      @ApiModelProperty("车位备注	")
      private String note;
      @ApiModelProperty("预定人id")
      private Long userId;

      @ApiModelProperty("起止时间")
      private String startEnd;

    @ApiModelProperty("起止时间")
     @TableField(exist = false)
    private String[] startEndDto;


      @TableField(exist = false)
      private Long money;

    
    public Long getId() {
        return id;
    }

      public void setId(Long id) {
          this.id = id;
      }



    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }


    public String getStartEnd() {
        return startEnd;
    }

    public void setStartEnd(String startEnd) {
        this.startEnd = startEnd;
    }

    public String[] getStartEndDto() {
        return startEndDto;
    }

    public void setStartEndDto(String[] startEndDto) {
        this.startEndDto = startEndDto;
    }

    public LocalDateTime getAddtime() {
        return addtime;
    }

      public void setAddtime(LocalDateTime addtime) {
          this.addtime = addtime;
      }
    
    public String getNumberId() {
        return numberId;
    }

      public void setNumberId(String numberId) {
          this.numberId = numberId;
      }
    
    public String getArea() {
        return area;
    }

      public void setArea(String area) {
          this.area = area;
      }
    
    public String getType() {
        return type;
    }

      public void setType(String type) {
          this.type = type;
      }
    
    public String getPlace() {
        return place;
    }

      public void setPlace(String place) {
          this.place = place;
      }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPrice() {
        return price;
    }

      public void setPrice(Integer price) {
          this.price = price;
      }
    
    public String getNote() {
        return note;
    }

      public void setNote(String note) {
          this.note = note;
      }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Carport{" +
              "id = " + id +
                  ", addtime = " + addtime +
                  ", numberId = " + numberId +
                  ", area = " + area +
                  ", type = " + type +
                  ", place = " + place +
                  ", status = " + status +
                  ", price = " + price +
                  ", note = " + note +
              "}";
    }
}
